#include <stdio.h>

int main(void)
{
	char t[80];
	int i;

	puts("Input a character string:");
	gets(t);
	i = 0;
	while (t[i] != '\0')
		i++;
	printf("length = %d\n", i);

	return 0;
}